<%@page pageEncoding="ISO-8859-1"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>

<%@taglib prefix="a4j" uri="http://richfaces.org/a4j"%>
<%@taglib prefix="rich" uri="http://richfaces.org/rich"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<%
        request.setAttribute("nombrePagina", "Tramitar Solicitud de Credito");
%>

<f:view>

    <%@include file="/WEB-INF/jspf/header.jspf" %>
    <%@include file="/WEB-INF/jspf/breadcumbs.jspf" %>
    <%@include file="/WEB-INF/jspf/options.jspf" %>

    <rich:panel>
        <h1><h:outputText value="Tramitar Solicitud de Credito" /></h1>
        <h:form>
            <h:messages showDetail="true" />

            <%@include file="/WEB-INF/datosModulo/datosSolicitudCredito.jspf" %>
            <br>
            <br>
            <h3><h:outputText value="Componentes de Solicitud de Credito:" /></h3>
            <h:panelGrid columns="3">

                <h:selectBooleanCheckbox value="#{SolicitudCreditoController.af}" disabled="true"/>
                <h:outputLabel value="Scoring/Rating:" for="txtScoring" escape="false" />
                <h:commandButton id="btnScoring" value="Realizar Scoring"  styleClass="negrita" action="scoring"/>

                <h:selectBooleanCheckbox value="#{SolicitudCreditoController.gex}" disabled="true"/>
                <h:outputLabel value="Presentacion de Documentos:" escape="false" />
                <h:commandButton id="btnExpediente" value="Ver Expediente" styleClass="negrita" action="#{SolicitudCreditoController.verExpediente}"/>

                <h:selectBooleanCheckbox value="#{SolicitudCreditoController.ga}" disabled="true"/>
                <h:outputLabel value="Cobertura de Garantias: " escape="false"/>
                <h:commandButton id="btnGarantias" value="Asociar Garantia" styleClass="negrita" action="#{SolicitudCreditoController.verGarantias}"/>

                <h:selectBooleanCheckbox value="#{SolicitudCreditoController.aa}" disabled="true"/>
                <h:outputLabel value="Nivel de Autonomia: " escape="false" />
                <h:commandButton id="btnAutonomia" value="Enviar a Evaluacion"  styleClass="negrita" action="#{SolicitudCreditoController.enviarAAprobacion}"/>



                <h:selectBooleanCheckbox value="#{false}" disabled="true"/>
                <h:outputLabel value="Calificacion Central de Riesgo: " escape="false" />
                <h:outputText id="txtRCR" value="4"/>
                
                <h:panelGroup></h:panelGroup>
                <h:outputLabel value="Seguros: " escape="false" />
                <h:commandButton id="btnSeguros" value="Asociar Seguros"  styleClass="negrita" action="seguros"/>

            </h:panelGrid>

            <br>
            <h:panelGrid columns="2">
                <h:commandButton id="btnExtornar" value="Extornar Credito" styleClass="negrita" action="#{SolicitudCreditoController.realizarExtorno}" />
            </h:panelGrid>
            <br>
            <h:commandButton id="btnSalir" value="Salir" styleClass="negrita" action="irPrincipal" />
        </h:form>
    </rich:panel>

    <%@include file="/WEB-INF/jspf/footer.jspf" %>
</f:view>